package com.billing.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.TAssetsRemindingMapper;
import com.billing.model.entity.TAssetsReminding;
import com.billing.service.AssetsRemindingService;
@Service
public class AssetsRemindingServiceImpl implements AssetsRemindingService {
	@Resource
	private TAssetsRemindingMapper assetsRemindingMapper;
	@Override
	public int updateAssetsReminding(TAssetsReminding assetsReminding) {
		return assetsRemindingMapper.updateByPrimaryKeySelective(assetsReminding);
	}

	@Override
	public int addAssetsReminding(TAssetsReminding assetsReminding) {
		return assetsRemindingMapper.insertSelective(assetsReminding);
	}

	@Override
	public TAssetsReminding findRemindingById(Integer id) {
		return assetsRemindingMapper.selectByPrimaryKey(id);
	}

	@Override
	public List<TAssetsReminding> findRemindingList() {
		return assetsRemindingMapper.selectList();
	}

}
